package com.booklove.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 书本实体--届时需要视图做请求
 * </p>
 *
 * @author author
 * @since 2024-09-21
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("books")
@ApiModel(value="Books对象", description="书本实体--届时需要视图做请求")
public class Books implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "内容描述")
    private String description;

    @ApiModelProperty(value = "书本的ISBN码")
    private String isbn;

    @ApiModelProperty(value = "内容描述")
    private String content;

    @ApiModelProperty(value = "书本标签（冗余中）")
    private String label;

}
